package com.swm.yzgrtk.utils;

import javafx.scene.control.Alert;
import javafx.scene.control.DialogPane;

/**
 * @author 师文明
 * @data 2025/1/15 下午4:25
 **/
public class DialogUtil {
    public static void showDialog(String word) {
        Alert alert = new Alert(Alert.AlertType.INFORMATION);
        alert.setTitle("提示");
        //alert.setHeaderText("头部通知");
        alert.setContentText(word);
        DialogPane dialogPane = alert.getDialogPane();
        dialogPane.getStylesheets().add("custom.css");
        alert.showAndWait();
    }
}
